package Homework5;

import java.util.*;

public class Homework5_1_TestTriangle {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        double side1 = input.nextDouble();
        double side2 = input.nextDouble();
        double side3 = input.nextDouble();
        input.nextLine();
        Triangle triangle = new Triangle(side1, side2, side3);
        String color = input.nextLine();
        triangle.setColor(color);
        boolean filled = input.nextBoolean();
        triangle.setFilled(filled);
        System.out.println("The area is " + triangle.getArea());
        System.out.println("The perimeter is "
                + triangle.getPerimeter());
        System.out.println(triangle);
    }
}
